home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
VRML 2.0 Sourcebook (2nd Edition)
/
VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso
/
book
/
unix
/
ch17
/
17fig12b.wrl
< prev
next >
Wrap
Text File
|
1996-09-22
|
2KB
|
80 lines
#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright [1997] By
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Group {
children [
# Top left
Shape {
appearance Appearance {
material Material { diffuseColor 1.0 0.35 0.23 }
texture DEF wood ImageTexture { url "wood_g.jpg" }
}
geometry DEF square IndexedFaceSet {
coord Coordinate {
point [
0.0 1.0 0.0, 0.0 0.0 0.0,
1.1 0.0 0.0, 1.1 1.0 0.0
]
}
coordIndex [ 0, 1, 2, 3 ]
}
},
# Top center
Transform {
translation 1.25 0.0 0.0
children Shape {
appearance Appearance {
material Material { diffuseColor 1.0 0.45 0.23 }
texture USE wood
}
geometry USE square
}
},
# Top right
Transform {
translation 2.50 0.0 0.0
children Shape {
appearance Appearance {
material Material { diffuseColor 1.0 0.55 0.23 }
texture USE wood
}
geometry USE square
}
},
# Bottom left
Transform {
translation 0.0 -1.25 0.0
children Shape {
appearance Appearance {
material Material { diffuseColor 1.0 0.65 0.53 }
texture USE wood
}
geometry USE square
}
},
# Bottom center
Transform {
translation 1.25 -1.25 0.0
children Shape {
appearance Appearance {
material Material { diffuseColor 1.0 0.55 0.43 }
texture USE wood
}
geometry USE square
}
},
# Bottom right
Transform {
translation 2.50 -1.25 0.0
children Shape {
appearance Appearance {
material Material { diffuseColor 1.0 0.55 0.53 }
texture USE wood
}
geometry USE square
}
}
]
}